package com.health.user.model.dto.doctor;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author zhexueqi
 * @ClassName DoctorRegisterRequest
 * @since 2024/8/26    10:03
 */
@Data
public class DoctorRegisterRequest {

    /**
     * 医生账号
     */
    @NotBlank(message = "医生账号不能为空")
    @Schema(description = "医生账号")
    private String doctorAccount;

    @NotBlank(message = "医生姓名不能为空")
    @Schema(description = "医生姓名")
    private String doctorName;

    @NotBlank(message = "医生密码不能为空")
    @Schema(description = "医生密码")
    private String doctorPassword;

    @NotBlank
    @Schema(description = "医院名称")
    private String hospitalName;

    @NotBlank
    @Schema(description = "医院地址")
    private String hospitalAddress;

    @NotBlank
    @Schema(description = "医生地址")
    private String doctorAddress;

    @NotNull
    @Schema(description = "医生性别")
    private Integer gender;

    @NotBlank
    @Schema(description = "医生部门")
    private String department;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "开始工作时间")
    private LocalDateTime startTime;

}
